package cf.huzpsb.lias;

import net.md_5.bungee.api.CommandSender;
import net.md_5.bungee.api.plugin.Command;

public class GetCMD extends Command {
    public GetCMD(String name, String permission, String... aliases) {
        super(name, permission, aliases);
    }

    @Override
    public void execute(CommandSender sender, String[] args) {
        if (args.length != 1) {
            sender.sendMessage("§c请使用/query <账户/ip> 来查询封禁状态!");
        } else {
            if (Main.getstat(args[0])) {
                sender.sendMessage("§c封禁状态:真");
            } else {
                sender.sendMessage("§c封禁状态:假");
            }
        }
    }
}
